package day03;

/**
 if结构演示
 */
public class IfDemo {
    public static void main(String[] args) {
        double price=1000;
        if(price>=500){
            System.out.println(price*=0.8);
        }
        System.out.println("优惠价格："+price);
        int age=10;
        double prices=10000;
        if (age<=18) {
            System.out.println("还是小孩子给优惠到"+prices*0.7);
        }
    }
}
